package situ.autoweter.entity;

import com.alibaba.fastjson.JSONObject;
import java.util.*;
import java.time.*;
/**
 * SY_Emp实体类
 * 
 * @author 
 *
 */
public class SyEmp {
	/***/
	private Object id; 
	/***/
	private String EmpNmae; 
	/***/
	private String EmpNo; 
	/***/
	private String Pwd; 
	/***/
	private Integer DeptID; 
	/***/
	private String Remark; 
	/***/
	private Integer Disabled; 
	/**
	 * 实例化
	 */
	public SyEmp() {
		super();
	}
	/**
	 * 实例化
	 * 
	 * @param obj
	 */
	public SyEmp(JSONObject obj) {
		this();
		this.setId(obj.get("id"));
		if (obj.get("EmpNmae") instanceof String) {
			this.setEmpNmae((String) obj.get("EmpNmae"));
		}
		if (obj.get("EmpNo") instanceof String) {
			this.setEmpNo((String) obj.get("EmpNo"));
		}
		if (obj.get("Pwd") instanceof String) {
			this.setPwd((String) obj.get("Pwd"));
		}
		if (obj.get("DeptID") instanceof Number) {
			this.setDeptID(((Number) obj.get("DeptID")).intValue());
		}
		if (obj.get("Remark") instanceof String) {
			this.setRemark((String) obj.get("Remark"));
		}
		if (obj.get("Disabled") instanceof Number) {
			this.setDisabled(((Number) obj.get("Disabled")).intValue());
		}
	}
	
	/**
	 * 将当前对象转换为JsonObject
	 * 
	 * @return
	 */
	public JSONObject toJson() {
		JSONObject result = new JSONObject();
		if (this.getId() != null) {
			result.put("id",this.getId());
		}
		if (this.getEmpNmae() != null) {
			result.put("EmpNmae",this.getEmpNmae());
		}
		if (this.getEmpNo() != null) {
			result.put("EmpNo",this.getEmpNo());
		}
		if (this.getPwd() != null) {
			result.put("Pwd",this.getPwd());
		}
		if (this.getDeptID() != null) {
			result.put("DeptID",this.getDeptID());
		}
		if (this.getRemark() != null) {
			result.put("Remark",this.getRemark());
		}
		if (this.getDisabled() != null) {
			result.put("Disabled",this.getDisabled());
		}
		return result;
	}
	
	
	/**
	 * 获取id
	 * 
	 * @return
	 */
	public Object getId() {
		return id;
	}

	/**
	 * 设置id
	 * 
	 * @param id
	 */
	public void setId(Object id) {
		this.id = id;
	}
	
	/**
	 * 获取EmpNmae
	 * 
	 * @return
	 */
	public String getEmpNmae() {
		return EmpNmae;
	}

	/**
	 * 设置EmpNmae
	 * 
	 * @param EmpNmae
	 */
	public void setEmpNmae(String EmpNmae) {
		this.EmpNmae = EmpNmae;
	}
	
	/**
	 * 获取EmpNo
	 * 
	 * @return
	 */
	public String getEmpNo() {
		return EmpNo;
	}

	/**
	 * 设置EmpNo
	 * 
	 * @param EmpNo
	 */
	public void setEmpNo(String EmpNo) {
		this.EmpNo = EmpNo;
	}
	
	/**
	 * 获取Pwd
	 * 
	 * @return
	 */
	public String getPwd() {
		return Pwd;
	}

	/**
	 * 设置Pwd
	 * 
	 * @param Pwd
	 */
	public void setPwd(String Pwd) {
		this.Pwd = Pwd;
	}
	
	/**
	 * 获取DeptID
	 * 
	 * @return
	 */
	public Integer getDeptID() {
		return DeptID;
	}

	/**
	 * 设置DeptID
	 * 
	 * @param DeptID
	 */
	public void setDeptID(Integer DeptID) {
		this.DeptID = DeptID;
	}
	
	/**
	 * 获取Remark
	 * 
	 * @return
	 */
	public String getRemark() {
		return Remark;
	}

	/**
	 * 设置Remark
	 * 
	 * @param Remark
	 */
	public void setRemark(String Remark) {
		this.Remark = Remark;
	}
	
	/**
	 * 获取Disabled
	 * 
	 * @return
	 */
	public Integer getDisabled() {
		return Disabled;
	}

	/**
	 * 设置Disabled
	 * 
	 * @param Disabled
	 */
	public void setDisabled(Integer Disabled) {
		this.Disabled = Disabled;
	}

	@Override
	public String toString() {
		return "SyEmp [id=" + id + " , EmpNmae=" + EmpNmae + " , EmpNo=" + EmpNo + " , Pwd=" + Pwd + " , DeptID=" + DeptID + " , Remark=" + Remark + " , Disabled=" + Disabled + "  ]";
	
	}
	
	
}
